package com.qdlc.p2p.dal.model;

import java.util.Date;

import org.springframework.beans.BeanUtils;

import com.qdlc.p2p.dal.dto.UserVip;

/**
 * vip封装参数model类
 * @author yy
 */
public class UserVipModel extends UserVip {

	/** 当前页码 */
	private int page;
	/** 每页总数 **/
	private int rows;
	/** 用户名 **/
	private String userName;
	/** 真实姓名 **/
	private String realName;
	/** 查询条件*/
	private String searchName;
	/** 起始时间 */
	private String startTime;
	/** 结束时间 */
	private String endTime;
	/** vip等级 */
	private int vipLevel;
	/** vip成长值 */
	private double growthValue;
	/** 加息比例 */
	private double extraRate;
	/** vip获取时间 */
	private Date vipTime;
	
	public static UserVipModel instance(UserVip userVip) {
		UserVipModel model = new UserVipModel();
		BeanUtils.copyProperties(userVip, model);
		return model;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public int getVipLevel() {
		return vipLevel;
	}

	public void setVipLevel(int vipLevel) {
		this.vipLevel = vipLevel;
	}

	public double getGrowthValue() {
		return growthValue;
	}

	public void setGrowthValue(double growthValue) {
		this.growthValue = growthValue;
	}

	public double getExtraRate() {
		return extraRate;
	}

	public void setExtraRate(double extraRate) {
		this.extraRate = extraRate;
	}

	public Date getVipTime() {
		return vipTime;
	}

	public void setVipTime(Date vipTime) {
		this.vipTime = vipTime;
	}

}
